package com.ruoyi.framework.task;

import com.ruoyi.project.task.service.WeightTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 称重定时任务
 */
@Component("czTask")
public class czTask {

    @Autowired
    private  WeightTaskService  weightTaskService;

    /**
     * 称重记录图片车牌识别
     */
    public void identifyWeightRecordImage(){
        weightTaskService.identifyWeightRecordImage();
    }

    /**
     *  运单异常
     */
    public void waybillExceptTask(){
           weightTaskService.waybillExceptTask();
    }

    /**
     * 无称重报警
     */
    public void noWeightAlarmTask() { weightTaskService.noWeightAlarmTask();}

    /**
     * 锡山称重记录图片识别
     */
    public void distinguishXsWeightRecordImage() {
        weightTaskService.distinguishXsWeightRecordImage();
    }

    /**
     * 删除转码过的源文件
     */
    public void deleteOssResourceVideoPath() {
        weightTaskService.deleteOssResourceVideoPath();
    }
}
